package com.kaikeba.service;

import com.kaikeba.bean.LinkData;
import com.kaikeba.bean.Type;
import com.kaikeba.dao.LinkMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by HMF on 2021/06/16 14:25
 */
@Service
public class LinkService {
    @Resource
    LinkMapper linkMapper;

    /**
     * @return
     */
    public List<LinkData> findAll() {
        return linkMapper.findAll();
    }

    /**
     * @param id
     * @return
     */
    public String findById(int id) {
        return linkMapper.findById(id);
    }

    /**
     *
     * @return
     */
    public List<Type> findAllType(){
        return linkMapper.findAllType();
    }
}
